import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    uname: sessionStorage.getItem('uname')//用户初始为未登录状态
  },
  mutations: {
    updateUname(state, uname) {
      state.uname = uname
    }
  },
  actions: {
  },
  modules: {
  }
})
